package com.examstack.scoremarker.listener;

import com.examstack.scoremarker.ScoreMarkerWin;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class ScoreMarkerListener implements ServletContextListener {

    private ScoreMarkerWin scoreMarkerWin=new ScoreMarkerWin();

    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        scoreMarkerWin.start();
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {
        scoreMarkerWin.stop();
    }
}
